package com.googlecode.flealancemarket.service.commands.impl;

import com.googlecode.flealancemarket.metamodel.CategoryGroup;
import com.googlecode.flealancemarket.service.commands.SaveCategoriesGroup;
import com.googlecode.flealancemarket.service.commands.SaveCategoryGroup;
import com.googlecode.flealancemarket.service.facades.CategoriesFacade;

public class SaveCategoriesGroupImpl implements SaveCategoriesGroup {
    
    private CategoryGroup categoryGroup;
    private CategoriesFacade facade;

    public void setCategoryGroup(CategoryGroup cg) {
        this.categoryGroup = cg;
    }

    public CategoryGroup execute() {
        return facade.saveCategoryGroup(categoryGroup);
    }
    
    public void setFacade(CategoriesFacade cf){
        facade = cf;
    }
}
